import { Module } from '@nestjs/common';
import { CommonController } from './common.controller';
import { CommonService } from './common.service';
import { MinioModule } from './middleware/minio/minio.module';
import { PrismaModule } from './middleware/prisma/prisma.module';
import { RedisModule } from './middleware/redis/redis.module';
import { RabbitmqModule } from '@app/rabbitmq';
import { GrpcModule } from '@app/grpc';
import { NacosConfigModule } from '@app/nacos-config';
import { NacosRegisterModule } from '@app/nacos-register';
import { EtcdConfigModule } from '@app/etcd-config';
import { EtcdRegisterModule } from '@app/etcd-register';

@Module({
  imports: [
    MinioModule,
    PrismaModule,
    RedisModule,
    RabbitmqModule,
    GrpcModule,
    NacosConfigModule,
    NacosRegisterModule,
    EtcdConfigModule,
    EtcdRegisterModule,
  ],
  controllers: [CommonController],
  providers: [CommonService],
})
export class CommonModule {}
